var _ = require('underscore');

var html = '<h2><%= name %></h2>' 

var fn = _.template(html);

// 调用模板 返回html
html = fn({name:'哒哒'});

console.log(html);